Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify the image operations in extensions library #831

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

wenbingl
Copy link
Member

And turning off the OpenCV based operators in the extensions library.

@wenbingl wenbingl marked this pull request as ready for review October 24, 2024 22:33
@wenbingl wenbingl requested a review from a team as a code owner October 24, 2024 22:33
auto rgb_data = std::make_unique<uint8_t[]>(height_x_width[0] * height_x_width[1] * color_space);
for (int y = 0; y < height_x_width[0]; ++y) {
for (int x = 0; x < height_x_width[1]; ++x) {
rgb_data[(y * height_x_width[1] + x) * color_space + 0] = bgr_data[(y * height_x_width[1] + x) * color_space + 2];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we can save height_x_width[1] in a variable here since it is called many times, to save compute/time to access the vector each time.

@wenbingl
Copy link
Member Author

One weird issue is the test images generated by one machine has a 1-byte size difference from another machine. Investigating...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants